DLL CALL EXIST

This command determines whether a function call exists within a loaded DLL.

  Syntax
Return Integer=DLL CALL EXIST(DLL Number, Function Name)
  Parameters
DLL Number
Integer
The DLL Number must be an integer value between 1 and 256
Function Name
String
Function String describes the function name within the DLL

  Returns

If the function exists an integer value of one is returned, otherwise zero

  Description

The DLL Number must be an integer value between 1 and 256. The DLL Number specifies a previously loaded DLL and the Function String describes the function name within the DLL. If the function exists an integer value of one is returned, otherwise zero.

  Example Code
cls
print "Loading DLL..."
LOAD DLL "TestDLL.dll",1
if DLL EXIST(1)=1
print "Calling DLL Function...";
if DLL CALL EXIST(1, "?MyFunc@@YAXXZ")=1
print "okay."
CALL DLL 1, "?MyFunc@@YAXXZ"
else
print "does not exist."
endif
print "Calling DLL Function with Return Value...";
if DLL CALL EXIST(1, "?MyFunc@@YAHH@Z")=1
print CALL DLL(1, "?MyFunc@@YAHH@Z")
else
print "does not exist."
endif
print "Deleting DLL..."
DELETE DLL 1
else
print "not loaded."
endif
do
loop
end
  See also

SYSTEM Commands Menu
Index